<%--
  Created by IntelliJ IDEA.
  User: administrator
  Date: 2020/3/5
  Time: 19:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
<%--    <script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>--%>
    <script>
        //页面加载，绑定单击事件
        $(function(){
            $("#btn").click(function () {
                console.log('##'+Date.now());
                // $.ajax({
                //     url:"user/testAjax",
                //     contentType:"application/json;charset=UTF-8",
                //     data:'{username:"haha",password:"123",age:11}',
                //     dataType:"json",
                //     type:"post",
                //     success:function (data) {
                //
                //     }
                // });
            });
        });
    </script>
</head>
<body>
<a href="user/testString">testString</a>
<br/>
<button id="btn">发送ajax的请求</button>
</body>

</html>

